<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="/struts-tags" prefix="s"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<%@include file="../inc/head.jsp"%>

<body>

	<div id="wrapper">

		<!-- top info starts here -->

		<%@include file="../inc/div_header.jsp"%>

		<!-- main content starts here -->

		<c:if test="${!empty listeErreurs}">
			<br />
			<label class="error">Liste des Erreurs: <br /></label>
			<ul>
				<c:forEach items="${listeErreurs}" var="error">
					<li><label class="error">${error}</label></li>
				</c:forEach>
			</ul>
			<br />
		</c:if>

		<s:if test="hasActionErrors()">
			<div class="errors">
				<s:actionerror />
			</div>
		</s:if>

		<s:form action="inscription" method="post">
			<s:textfield label="Identifiant" name="login" />
			<s:textfield type="password" name="password" label="Mot de Passe" />
			<s:textfield name="nom" label="Nom" />
			<s:textfield name="prenom" label="Prenom" />
			<s:textfield name="adresse" label="Adresse" />
			<s:textfield name="cp" label="CP" />
			<s:textfield name="ville" label="Ville" />
			<s:textfield name="telephone" label="Telephone" />
			<s:textfield width="275px" name="age" label="Age" />

			<s:submit action="inscription" value="s'inscrire" />
		</s:form>

		<%@include file="../inc/footer.jsp"%>

	</div>

</body>
</html>